

tar -xf DBS-GaussDB-Kylin-Kernel_25.1.30.10.968045292423872.tar.gz
cd DBS-GaussDB-Kylin-Kernel_25.1.30.10.968045292423872/packages/

# tar -xf *_all.tar.gz
tar -xf DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_all.tar.gz

rm -rf DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_all.tar.gz
cd DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_all/

# tar -xf *_noarch.tar.gz
tar -xf DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_noarch.tar.gz

rm -rf DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_noarch.tar.gz
cd DBS-GaussDB-kernel_9.0.0.SPC0100.20250427175024.kylin.107678083_noarch/repo/

#rpm2cpio *.noarch.rpm | cpio -idmv
rpm2cpio DBS-GaussDB-kernel-src-9.0.0.SPC0100.20250427175024.kylin.107678083-1.noarch.rpm | cpio -idmv

rm -rf DBS-GaussDB-kernel-src-9.0.0.SPC0100.20250427175024.kylin.107678083-1.noarch.rpm
cd opt/cloud/GaussDB-kernel/

# 带ha是集中式，不带是分布式
# tar -xf *ha-x86_64*.tar.gz
tar -xf v9.0.0.SPC0100-GaussDBV5-install-kylin-ha-x86_64_1cc3a7613759e3b6adf885c90adfd2b6ce835b95cb2b898538c14a86a0a914a0.tar.gz
#tar -xf v9.0.0.SPC0100-GaussDBV5-install-kylin-aarch64_d918a268334971aff2d6bd567282d526df9005d9eccb7f949ee48d14a76e04fe.tar.gz
#tar -xf v9.0.0.SPC0100-GaussDBV5-install-kylin-ha-aarch64_a7643865bd3ea44f78a8d8c4832d3103c285f7953a57def4119abc4939c13b5e.tar.gz
#tar -xf v9.0.0.SPC0100-GaussDBV5-install-kylin-x86_64_b03ea7dd52bbb453a534fc18185f412d6b2a531824c2634858dc6c0eee97baec.tar.gz

rm -rf v9.0.0.SPC0100-GaussDBV5-install-kylin*.tar.gz
cd v9.0.0.SPC0100-GaussDBV5-install-kylin-ha-x86_64/

#tar -xf *.tar.gz
tar -xf GaussDB-Kernel_506.0.0.SPC0100.B010_Server_X86_Centralized.tar.gz
#tar -xf *_64bit_Server.tar.gz
tar -xf GaussDB-Kernel_506.0.0.SPC0100_Kylin_64bit_Server.tar.gz

# cp *_Om_*.tar.gz ../../../../../../../../../
# cp *_Server_*.tar.gz ../../../../../../../../../
# cp *_Symbol_*.tar.gz ../../../../../../../../../
# cp *.bin ../../../../../../../../../
cp GaussDB-Kernel_506.0.0.SPC0100.B010_Om_X86_Py3.7_Centralized.tar.gz ../../../../../../../../../
cp GaussDB-Kernel_506.0.0.SPC0100.B010_Server_X86_Centralized.tar.gz ../../../../../../../../../
cp GaussDB-Kernel_506.0.0.SPC0100.B010_Symbol_X86_Centralized.tar.gz ../../../../../../../../../
cp GaussDB-Kernel_506.0.0.SPC0100_Kylin_64bit.bin ../../../../../../../../../

cd ../../../../../../../../../
rm -rf DBS-GaussDB-Kylin-Kernel_25.1.30.10.968045292423872
